package com.xmu.makerspace.dao;

import com.xmu.makerspace.domain.TempMember;
import com.xmu.makerspace.domain.TempMemberPK;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by status200 on 2017/8/9.
 */
public interface TempMemberRepository extends CrudRepository<TempMember,TempMemberPK> {

    List<TempMember> findByTeamId(String teamId);

    TempMember findByTeamIdAndOrderInTeam(String teamId, short orderInTeam);

    void deleteByTeamId(String teamId);
}
